Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Traack remove local storage code #138

Merged
merged 7 commits into from
Jul 27, 2023
Merged

Conversation

avenmia
Copy link
Collaborator

@avenmia avenmia commented Jul 24, 2023

  • Removes the local storage checks
  • Removes the XID column and uses the user ID instead
  • The polis survey only renders when the user ID is returned from the database

@vercel
Copy link

vercel bot commented Jul 24, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
hierr ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 27, 2023 2:35am

dinoboy197

This comment was marked as duplicate.

Copy link
Contributor

@dinoboy197 dinoboy197 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - I just have one small question!

document.body.removeChild(script);
};
}, []);
if (userID === "" || userID === undefined) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible for this page to load if the user hasn't logged in yet?

If yes, then I propose that if we detect that the userID isn't in the session that we redirect the user back to the home page instead of just saying Loading Surveys. What do you think?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we want to redirect the user back to the home page if they're not logged in for all pages, but I'll add that in a separate PR

Copy link
Contributor

@dinoboy197 dinoboy197 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good. Ship it!

@avenmia avenmia merged commit 3a2ffb5 into main Jul 27, 2023
3 checks passed
@avenmia avenmia deleted the traack-remove-local-storage-code branch July 27, 2023 04:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants